// Created by Joe on 8/1/2017

app.service(
    'HeatingStewardService',
    [
        'RequestProxyService',
        function (RequestProxyService) {
            return {
                getHeatingInfo: function (area) {
                    return RequestProxyService.requestProxy('/app/getHeatManagerInfo', {},
                        {areaName: area},
                        function (resolve, info) {
                            resolve(info.result);
                        })();
                }
            };
        }
    ]
);